﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SIAKAD.Helper
{
    public static class SiteMapHelper
    {
        public static string Check(SIAKADCORE.Models.Login cridential)
        {
            switch (cridential.UserType)
            {
                case SIAKADCORE.Models.LoginType.Admin:
                    return "/Admin.aspx";
                case SIAKADCORE.Models.LoginType.Dosen:
                    return "/Dosen.aspx";
                case SIAKADCORE.Models.LoginType.Mahasiswa:
                    return "/Mahasiswa.aspx";
                case SIAKADCORE.Models.LoginType.Pegawai:
                    return "/Pegawai.aspx";
                default:
                    throw new Exception("Can't define the cridential");
            }
        }
    }
}